package fr.maistre.champagne.fragments;

import fr.maistre.champagne.PartieHolder;
import fr.maistre.champagne.R;
import android.app.Activity;
import android.app.Fragment;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

public class TransformationFragment extends Fragment {
	private PartieHolder partieHolder;

	@Override
	public void onAttach(Activity activity) {
		super.onAttach(activity);
		if (activity instanceof PartieHolder) {
			partieHolder = (PartieHolder) activity;
		} else {
			throw new ClassCastException(activity.toString()
					+ " must implemenet PartieHolder");
		}
	}

	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
		View rootView = inflater.inflate(R.layout.fragment_transformation,
				container, false);
		return rootView;
	}
}
